package memorphic.samplr.services
{
	import com.adobe.webapis.flickr.FlickrService;
	
	public class ServiceLocator
	{

		private static var flickrService:FlickrService;
		
		
		/**
		 * Replace this with your own Flickr API Key
		 */
		private static const FLICKR_API_KEY:String = "13198941d0eb307483482d7e0b9aa3e1";
		
		/**
		 * Replace this with your own Flickr Shared Secret Key
		 */
		private static const FLICKR_SECRET:String = "0734f7f840658ee5";
		


		public static function getFlickrService():FlickrService
		{
//			if (!flickrService)
//			{
//				flickrService = new FlickrService(FLICKR_API_KEY);
//				flickrService.secret = FLICKR_SECRET;
//			}
//			return flickrService;
			var fs:FlickrService = new FlickrService(FLICKR_API_KEY);
			fs.secret = FLICKR_SECRET;
			return fs;
		}
	}
}